<template>
  <div>
    <el-button style="margin-left: 0">1</el-button>
    <el-button style="margin-left: 0">1</el-button>
    <el-button style="margin-left: 0">1</el-button>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
div {
  display: flex;
  width: 800px;
  height: 400px;
  background-color: pink;
  /* 默认的主轴是 x 轴 row */
  /* flex-direction: row; */
  /* 设置主轴为 y 轴 column */
  flex-direction: column;
  justify-content: center;
  /* 需要一个侧轴居中 */
  align-items: center;
}
div span {
  width: 150px;
  height: 100px;
  background-color: purple;
  color: #fff;
  margin: 10px;
}
</style>